﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Web;

namespace Hangtot.Main.ViewModels.Megamenu
{
    public class Megamenu
    {
        public MainNav MainNav { get; set; }
        public IMegaContent MegaContent { get; set; }
        public override string ToString()
        {
            var sb = new StringBuilder();
            sb.AppendLine("<div>");
            sb.Append(MainNav);
            sb.Append(MegaContent);
            sb.AppendLine("</div>");
            return sb.ToString();
        }
        public Megamenu()
        {
#if DEBUG
            MainNav = new MainNav()
            {
                Links = new Collection<LinkItem>()
                {
                    new LinkItem("#", "")
                }
            };
#endif
        }
    }
}